package org.dromara.mall.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.util.List;

/**
 * 商品规格对象 mall_goods_spec
 *
 * @author Mr Lei
 * @date 2024-05-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mall_goods_spec")
public class  MallGoodsSpec extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /* id */
    @TableId(value = "id")
    private Long id;

    /* 规格名称 */
    private String name;

    /*商品分类*/
    private Long cateId;

    /*商品id*/
    private Long goodsId;
    /*商品属性值*/
    @TableField(exist = false)
    private List<MallGoodsSpecVal> specValues;

}
